/**
 * 
 */
package core;

/**
 * @author Xiaohui
 * 
 */
public class StartPoint extends CheckPoint {

	int oid;
	int currTime;
	public StartPoint(int id, double[] pCoords, int oid, int reportTime) {
		super(id, pCoords);
		this.oid = oid;
		currTime = reportTime;
	}

	public String toString() {
		// id x y
		// System.out.println("start poing tostring");
		String result = this.getId() + "\t";
		for (int i = 0; i < m_pCoords.length; i++) {
			result += m_pCoords[i] + "\t";
		}
		return result;
	}

	/**
	 * To be used by R-Tree format: oid
	 */
	public String getData() {
		return this.currTime + " " + oid;
	}

	/**
	 * @return the oid
	 */
	public int getOid() {
		return oid;
	}

	/**
	 * @param oid
	 *            the oid to set
	 */
	public void setOid(int oid) {
		this.oid = oid;
	}
}
